package com.liangtian.mdm.system.datapermission.dao;

import com.liangtian.mdm.base.BaseDao;
import com.liangtian.mdm.system.datapermission.model.SysDataPermission;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * 类别数据权限数据库层接口
 *
 * @author ly
 * @date 2017-02-14
 */

@Repository
public interface SysDataPermissionDao extends BaseDao<SysDataPermission> {

    public List<SysDataPermission> getDataPermissionLstByCond(SysDataPermission permission);

    public void deleteDataPermission(SysDataPermission permission);

    public void insertDataPermission(SysDataPermission permission);

    public int deleteUserWlPermission(Map<String, Object> map);

}
